home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2005 March / Macworld CD March 2005 - Marathon Trilogy.iso / Shareware World / User Interface / RocketLauncher.sit / RocketLauncher / RocketLauncher.CVS / SearchString.m,v < prev    next >
Encoding:
Text File  |  2005-01-09  |  1.1 KB  |  76 lines

  1. head     1.1;
  2. branch   1.1.1;
  3. access   ;
  4. symbols  start:1.1.1.1 oleg:1.1.1;
  5. locks    ; strict;
  6. comment  @// @;
  7.  
  8.  
  9. 1.1
  10. date     2005.01.09.18.45.06;  author oleg;  state Exp;
  11. branches 1.1.1.1;
  12. next     ;
  13.  
  14. 1.1.1.1
  15. date     2005.01.09.18.45.06;  author oleg;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24.  
  25. 1.1
  26. log
  27. @Initial revision
  28. @
  29. text
  30. @//
  31. //  SearchString.m
  32. //  RocketLauncher
  33. //
  34. //  Created by Oleg Kibirev on 1/8/05.
  35. //  Copyright 2005 My Stuff. All rights reserved.
  36. //
  37.  
  38. #import "SearchString.h"
  39.  
  40.  
  41. @@implementation SearchString
  42. -(id)initWithString: (NSString *)searchStr appName: (NSString *)app {
  43.     self = [super init];
  44.     str = [searchStr retain];
  45.     appName = [app retain];
  46.     return self;
  47. }
  48.  
  49. -(void)dealloc {
  50.     [str release];
  51.     [appName release];
  52. }
  53.  
  54. - (id)initWithCoder:(NSCoder *)decoder {
  55.     self = [super init];
  56.     str = [[decoder decodeObjectForKey:@@"str"] retain];
  57.     appName = [[decoder decodeObjectForKey:@@"app"] retain];
  58.     return self;
  59. }
  60.  
  61. - (void)encodeWithCoder:(NSCoder *)encoder {
  62.     [encoder encodeObject:str forKey:@@"str"];
  63.     [encoder encodeObject:appName forKey:@@"app"];
  64. }
  65.  
  66. @@end
  67. @
  68.  
  69.  
  70. 1.1.1.1
  71. log
  72. @RocketLauncher
  73. @
  74. text
  75. @@
  76.